package com.libinyn.base.pms.mapper.sys;

import com.libinyn.base.pms.entity.sys.SysConfigEntity;
import com.libinyn.base.pms.mapper.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * 系统配置信息
 * @fileName: SysConfigMapper.java
 * @author: bin.li01
 * @date: 2017/12/15 10:57
 * @version: v1.0.0
 */
@Mapper
public interface SysConfigMapper extends MyMapper<SysConfigEntity> {

	/**
	 * 根据key，查询value
	 * @param paramKey
	 * @return
	 */
	SysConfigEntity queryByKey(String paramKey);

	/**
	 * 根据key，更新value
	 * @param key
	 * @param value
	 * @return
	 */
	int updateValueByKey(@Param("key") String key, @Param("value") String value);

	/**
	 * 删除配置信息
	 * @param ids
	 */
	void deleteBatch(Long[] ids);
	
}
